<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">

	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">

						<div class="columns pull-left" style="margin-left:4px">
							<select  id="type" name="type" class="form-control">
								<option value="">请选择证书类型</option>
								<option value="1">幼儿照护</option>
								<option value="2">产后恢复</option>
							</select>
						</div>

						<div class="columns pull-left" style="margin-left:4px">
							<select  id="certificatesType" name="certificatesType" class="form-control">
								<option value="">请选择要生成的证书</option>
								<option value="1">考核站点牌匾</option>
								<option value="2">示范考核站点</option>
								<option value="3">优秀考核站点</option>
								<option value="4">优秀实习就业单位</option>
							</select>
						</div>

						<div class="columns pull-left">
							<input id="getTime" name="getTime" style="width:150px"  class="form-control" type="text"
								   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请输入获证时间">
						</div>

						<button shiro:hasPermission="jzweb:schoolCertificates:import" type="button"
								class="btn  btn-success"
								onclick="downExcelModel('/jzweb/schoolCertificates/downloadImportTemplate')">
							<i class="fa fa-download" aria-hidden="true"></i>下载导入模板
						</button>

						<div class="columns pull-left" style="margin-left:4px;">

							<form shiro:hasPermission="jzweb:schoolCertificates:import" id="importExcelForm" method="post"
								  enctype="multipart/form-data">
								<input class="form-control" style="width:200px" name="file" id="fileUrls" type="file">
							</form>

						</div>

						<div class="columns pull-left" style="margin-left:4px;">
							<button shiro:hasPermission="jzweb:schoolCertificates:import" type="button"
									class="btn  btn-success"
									onclick="importExcel111($('#fileUrls'),$('#type'),$('#importExcelForm'),$('#certificatesType'),$('#getTime').val(),'/jzweb/schoolCertificates/import')">
								<i class="fa fa-upload" aria-hidden="true"></i>导入
							</button>
						</div>


						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>

						<div class="columns pull-right col-md-1 nopadding">
							<input id="orgName" name="orgName" type="text" class="form-control"
								   placeholder="请输入学校名称">
						</div>
					</div>

					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="jzweb:schoolCertificates:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
	<script src="/js/webJs/jzweb/schoolCertificates/schoolCertificates.js?dsss=4324"></script>
</body>
</html>